<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='接收')" />
<link th:href="@{plugins/common/css/basemessageDesk.css}" rel="stylesheet" />
<link th:href="@{css/desk/menu/operationCJ.css}" rel="stylesheet" />
<body class="sticky-header left-side-collapsed blank_bg" style="">
	<header class="topbar">
		<!-- page heading start-->
		<div class="head" id="titleHide">
			<div class="headTitle">接收</div>
			<div class="backIcon" title="返回" onclick="javascript:history.back(-1);">
				<i class="fa fa-arrow-left"></i>
			</div>
		</div>
		<div class="page-heading">
			<div class="" >
				<form action="#" id="start">
					<table border="0" cellspacing="0" cellpadding="0" class="info">
						<tr>
							<td style="text-align: left;">
								操作工卡号
								<input type="text" id="condition" name="condition" class="clean-c form-control bj_color" autocomplete="off" />
								<button  type="button" class="btn btn-info cleanAll" id="empty">清空</button>
							</td>
							<td>操作工姓名<input type="text" id="wname" name="wname" class="clean-c form-control" placeholder="自动获取" readonly="readonly"/></td>
						</tr>
					</table>
					<div style="margin-top: 10px;">
						<table id="receivingTable" class="table dataTable table-hover tableList" style="">
						</table>
					</div>
				</form>
			</div>
		</div>
		
		<!-- 接收模态框 start -->
		<div class="modal fade " id="receiveModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
			<div class="modal-dialog" style="width: 900px; height: 220px;">
				<div class="modal-content" style="width: auto;">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="titleModal">接收</h4>
					</div>
					<div class="modal-body" style="height: auto; padding: 10px;">
						<form id="receiveForm" class="form-group">
							<div style="display: inline-block;overflow: hidden;margin:0 15px;" id="">
								<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
									<tr>
										<td class="title"><span class="sub">生产任务单：</span></td>
										<td colspan="">
											<input type="text" id="receivefBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
											<input type="hidden" id="receivefIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
										</td>
										<td class="title"><span class="sub">产品代码：</span></td>
										<td colspan=""><input type="text" id="receivefNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
										<td class="title"><span class="sub">产品名称：</span></td>
										<td colspan=""><input type="text" id="receivefName" name="fName" class="clean_c form-control" readonly="readonly"></td>
									</tr>
									<tr>
										<td class="title"><span class="sub">规格型号：</span></td>
										<td colspan="5"><input type="text" id="receivefModel" name="fModel" class="clean_c form-control" readonly="readonly" style="width: 720px !important;"></td>
									</tr>
									<tr>
										<td class="title"><span class="sub">转出工序号：</span></td>
										<td colspan=""><input type="text" id="receivefSourceOperSN" name="fSourceOperSN" class="clean_c form-control" readonly="readonly"></td>
										<td class="title"><span class="sub">转出工序：</span></td>
										<td colspan=""><input type="text" id="receivefSourceOper" name="fSourceOper" class="clean_c form-control" readonly="readonly"></td>
										<td class="title"><span class="sub">转出车间：</span></td>
										<td colspan=""><input type="text" id="receivefSourceCenter" name="fSourceCenter" class="clean_c form-control" readonly="readonly"></td>
									</tr>
									<tr>
										<td class="title"><span class="sub">工序号：</span></td>
										<td colspan=""><input type="text" id="receivefTargetOperSN" name="fTargetOperSN" class="clean_c form-control" readonly="readonly"></td>
										<td class="title"><span class="sub">工序：</span></td>
										<td colspan=""><input type="text" id="receivefTargetOper" name="fTargetOper" class="clean_c form-control" readonly="readonly"></td>
										<td class="title"><span class="sub">生产车间：</span></td>
										<td colspan=""><input type="text" id="receivefTargetCenter" name="fTargetCenter" class="clean_c form-control" readonly="readonly"></td>
									</tr>
									<tr>
										<td class="title" colspan="6">
											<div style="float: left;">
												<span class="sub num">可接收数：</span>
												<input type="text" id="receivekQty" name="kQty" class="clean_c form-control bottomInput" readonly="readonly">
											</div>
											<div style="float: left;margin-left: 100px;">
												<span class="sub num"><span class="requiredCss">*</span>接收前实际数量：</span>	
												<input type="text" id="receivefActualQty" name="fActualQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
											</div>
											<div style="float: right;margin-right: 5px;">
												<span class="sub num"><span class="requiredCss">*</span>接收数量：</span>
												<input type="text" id="receivelQty" name="lQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
											</div>
										</td>
									</tr>
								</table>
								<div style="width: 100%;">
									<div>
										<span style="padding-left: 5px;" class="requiredCss">注：带*为必填字段。</span>
									</div>
									<div style="text-align: center;margin-top: 10px;">
										<button type="button" class="btn btn-default" id="confirm" style="margin-right: 20px;">确定</button>
										<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- 接收模态框 end -->
		<!-- page heading end-->
	</header>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<script th:src="@{js/desk/menu/receivingCJ.js}"></script>
</body>
</html>